package com.youuvs.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {

    //高级查询的当前页
    Integer localPage = 1;
    //每页显示条数
    Integer pageSize = 5;
    //高级查询
    private String keywords;

    public Integer getBegin(){
        return  (this.localPage-1)*this.pageSize;
    }
}
